
<!-- displays annotations by user id and document id-->
<%=h "Your Annotations:" %>

<% @annotations.each do |x|%>
    <li><small><%=x.comment%></small></li>
<% end %>
<%= will_paginate(@annotations)%>

<br/>
<!--displays all annotations for this document-->
<%=h "All Annotations:" %>
<% @annotations_all.each do |y|%>
    <li><small><%=y.comment%></small></li>
<% end %>
<%= will_paginate(@annotations_all)%>